package com.brillilab.domain.po.inventory;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.brillilab.domain.enums.inventory.InventoryRecordEnum;

import lombok.Data;

/**
 * @author wuzhiyu
 * @Title: InventoryRecord
 * @ProjectName brill_lab
 * @Description: 试剂使用记录
 * @date 2018/11/618:47
 */
@Data
@TableName("inventory_record")
public class InventoryRecord implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 实验室ID
     */
    private Long labId;
    /**
     * kitId
     */
    private Long kitId;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 用户姓名
     */
    private String userName;
    /**
     * 操作类型
     */
    private Integer operate;
    /**
     * 操作名称
     */
    private String operateName;
    /**
     * 操作时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;

    public String getColor() {
		return InventoryRecordEnum.getColor(operate);
	}
}
